<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>Agenda</title>
</head>

<body>
	<ui:composition template="/WEB-INF/template/templateMaster.xhtml">
		<ui:define name="conteudo">
			<div class="entry">

				<h:form>

					<p:ajaxStatus style="height:24px;display:block;">
						<f:facet name="start">
							<h:graphicImage value="../design/ajaxloading.gif" />
						</f:facet>

						<f:facet name="complete">
							<h:outputText value="" />
						</f:facet>
					</p:ajaxStatus>

					<p:growl id="messages" showDetail="true" />

					<p:schedule value="#{scheduleControllerMedico.eventModel}"
					draggable="false" 
					locale="pt-br">

					</p:schedule>

					 <p:dialog widgetVar="eventDialog" header="Event Details"
						showEffect="clip" hideEffect="clip">
						<h:panelGrid id="eventDetails" columns="2">
							<h:outputLabel for="title" value="Title:" />
							<p:inputText id="title" value="#{scheduleControllerMedico.event.title}"
								required="true" />

							<h:outputLabel for="from" value="From:" />
							<p:inputMask id="from"
								value="#{scheduleControllerMedico.event.startDate}" mask="99/99/9999">
								<f:convertDateTime pattern="dd/MM/yyyy" />
							</p:inputMask>

							<h:outputLabel for="to" value="To:" />
							<p:inputMask id="to" value="#{scheduleControllerMedico.event.endDate}"
								mask="99/99/9999">
								<f:convertDateTime pattern="dd/MM/yyyy" />
							</p:inputMask>

							<h:outputLabel for="allDay" value="All Day:" />
							<h:selectBooleanCheckbox id="allDay"
								value="#{scheduleControllerMedico.event.allDay}" />

							<p:commandButton type="reset" value="Reset" />
							<p:commandButton value="Save"
								actionListener="#{scheduleControllerMedico.addEvent}"
								oncomplete="myschedule.update();eventDialog.hide();" />
						</h:panelGrid>
					</p:dialog>

				</h:form>

			</div>

		</ui:define>
	</ui:composition>

</body>
</html>